package main

import (
	"os"
	"wx_build/core/timing_task"
	"wx_build/init/orm"
	"wx_build/init/table"
	"wx_build/init/user"
	"wx_build/router"
)

func init() {
	orm.Init()
	table.Init()
	user.Init()
	os.Mkdir("./git_code", 0777)
	os.Mkdir("./wx_app_key", 0777)
}
func main() {
	ch := make(chan bool)
	go func() {
		router.RunServe()
	}()
	go func() {
		timing_task.Run()
	}()
	<-ch

}
